package com.cssp.util;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class SpringUtil {

	static ApplicationContext context = new ClassPathXmlApplicationContext(
			"classpath:applicationContext*.xml");
	public static ApplicationContext getApplicationContext(){
		return context;
	}
	public static Object getBean(String beanName){
		return context.getBean(beanName);
	}
}
